﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Security;

namespace Erlacher.Opalis.Virsto
{
    static class Helper
    {
        static public SecureString CreateSecurePassword(string password)
        {
            SecureString sec = new SecureString();

            foreach (char c in password.ToCharArray())
            {
                sec.AppendChar(c);
            }

            sec.MakeReadOnly();


            return sec;
        }

    }
}
